package com.ds.dsm.aggregation.module;

import com.ds.dsm.aggregation.module.service.ModuleConfigService;
import com.ds.esd.custom.annotation.CustomAnnotation;
import com.ds.esd.custom.form.annotation.FormAnnotation;
import com.ds.esd.custom.form.enums.CustomFormMenu;
import com.ds.esd.custom.toolbar.BottomBarMenu;
import com.ds.esd.tool.ui.component.dialog.DialogBean;

@BottomBarMenu
@FormAnnotation(col = 1, customService = ModuleConfigService.class, bottombarMenu = {CustomFormMenu.Save, CustomFormMenu.ReSet})
public class ModuleWinBar {


    @CustomAnnotation(hidden = true, pid = true)
    String domainId;

    @CustomAnnotation(hidden = true, pid = true)
    String sourceClassName;

    @CustomAnnotation(caption = "显示恢复按钮")
    Boolean minBtn;

    @CustomAnnotation(caption = "显示最大按钮")
    Boolean maxBtn;


    @CustomAnnotation(caption = "命令窗口")
    Boolean cmd;

    @CustomAnnotation(caption = "显示刷新按钮")
    Boolean refreshBtn;

    @CustomAnnotation(caption = "显示帮助按钮")
    Boolean infoBtn;


    @CustomAnnotation(caption = "显示钉针按钮")
    Boolean pinBtn;
    @CustomAnnotation(caption = "显示降落按钮")
    Boolean landBtn;


    public ModuleWinBar(DialogBean dataBean) {

        if (dataBean != null) {
            this.domainId = dataBean.getDomainId();
            this.sourceClassName = dataBean.getSourceClassName();
            this.refreshBtn = dataBean.getRefreshBtn();
            this.infoBtn = dataBean.getInfoBtn();
            this.cmd = dataBean.getCmd();
            this.minBtn = dataBean.getMinBtn();
            this.maxBtn = dataBean.getMaxBtn();
            this.pinBtn = dataBean.getPinBtn();
            this.landBtn = dataBean.getLandBtn();
        }
    }

    public Boolean getCmd() {
        return cmd;
    }

    public void setCmd(Boolean cmd) {
        this.cmd = cmd;
    }

    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    public String getSourceClassName() {
        return sourceClassName;
    }

    public void setSourceClassName(String sourceClassName) {
        this.sourceClassName = sourceClassName;
    }

    public Boolean getRefreshBtn() {
        return refreshBtn;
    }

    public void setRefreshBtn(Boolean refreshBtn) {
        this.refreshBtn = refreshBtn;
    }

    public Boolean getInfoBtn() {
        return infoBtn;
    }

    public void setInfoBtn(Boolean infoBtn) {
        this.infoBtn = infoBtn;
    }

    public Boolean getPinBtn() {
        return pinBtn;
    }

    public void setPinBtn(Boolean pinBtn) {
        this.pinBtn = pinBtn;
    }

    public Boolean getLandBtn() {
        return landBtn;
    }

    public void setLandBtn(Boolean landBtn) {
        this.landBtn = landBtn;
    }

    public Boolean getMinBtn() {
        return minBtn;
    }

    public void setMinBtn(Boolean minBtn) {
        this.minBtn = minBtn;
    }

    public Boolean getMaxBtn() {
        return maxBtn;
    }

    public void setMaxBtn(Boolean maxBtn) {
        this.maxBtn = maxBtn;
    }
}
